package com.guguskins.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("gu_exception_log")
public class GuExceptionLog extends Model<GuExceptionLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "exc_id", type = IdType.AUTO)
    private Long excId;

    /**
     * 请求参数
     */
    private String excRequestParam;

    /**
     * 异常名称
     */
    private String excName;

    /**
     * 异常信息
     */
    private String excMessage;

    /**
     * 操作方法
     */
    private String excMethod;

    /**
     * 请求URI
     */
    private String excUri;

    /**
     * 请求IP
     */
    private String excIp;

    /**
     * 创建时间
     */
    private LocalDateTime excCreateTime;


    @Override
    protected Serializable pkVal() {
        return this.excId;
    }

}
